package com.mlnx.stream.listener.iml;

import com.mlnx.data.entity.BpInfo;
import com.mlnx.external.push.service.ExternalPushService;
import com.mlnx.stream.listener.BpListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by amanda.shan on 2019/12/18.
 */
@Service
public class BpExternalPushListener implements BpListener {

    @Autowired(required = false)
    private ExternalPushService externalPushService;

    @Override
    public void receiveBpInfo(BpInfo bpInfo) {
        externalPushService.pushBp(bpInfo);
    }
}
